crearDocView = Ext.extend(Ext.Panel, 
{
	fullscreen: true,
	layout: 'card',
		
	initComponent: function() 
	{
		this.tabPanel = new Ext.TabPanel(
		{
			type: 'dark',
			dock: 'bottom',
			animation: 'flip',
			items: [
			{
				title: 'Documento',
				iconCls: 'home',
				html: 'Home Screen'
			},
			{
				title: 'Cliente',
				iconCls: 'user',
				html: 'Contact Screen'
			}
			]
		});
		
		this.crearDocPanel = new Ext.Panel(
        {
			layout: 'fit',
            
            dockedItems: [
            {
                xtype: 'toolbar',
				dock: 'top',
                title: 'Crear/Modificar Documento',
                layout: 
                {
                    pack: 'center'
                },
                items: [
                {
                	xtype: 'box'
                },
				{
					xtype: 'button',
					text: 'Volver',
					ui: 'confirm',
					handler: function()
					{
						window.open("listaPanel.html","_self");
					}
				},
				{
					xtype: 'spacer'
				}]
            }],
			
			items:this.tabPanel,

		});		
        
        this.items = this.crearDocPanel;
        crearDocView.superclass.initComponent.call(this);
	}
});

Ext.reg('crearDocView', crearDocView);